package com.fanshilz.flower2025.apps.admin.sysRoute.req;

import com.fanshilz.flower2025.business.sys.sysRoute.entity.SysRoute;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@AutoMapper(target = SysRoute.class, reverseConvertGenerate = false)
public class SysRouteSaveOrUpdateReq {

    private Long routeId;

    @NotNull
    private String code;

    @NotNull
    private Integer type;

    @NotNull
    private Long parentId;

    @NotBlank
    private String path;

    @NotBlank
    private String name;

    @NotBlank
    private String component;

    private String redirect;

    private SysRouteMetaSaveOrUpdateReq meta;

}
